<template>
  <div id="viode">
    <div class="container">
      <div class="title">自拍 </div>
      <div class="row clearfix">
        <div class="video-box" v-for="item in 12">
          <div class="box">
            <img class="imgs" src="https://pppp.642p.com/images/202205/6285df56a4abea1e9312fb7e/poster2.jpg" alt="">
            <div class="tit">{{item}}红帝都嫩模『瑶瑶』巅峰新作-香港激情疯狂夜-和闺蜜双飞伺候纹身男友-无套后入轮操-</div>
          </div>
        </div>
      </div>

      <div class="pagination">
        <el-pagination
            background
            @size-change="pageChange"
            @current-change="pageChange"
            layout="prev, pager, next"
            :current-page="pageSizes"
            :page-size="20"
            :total="1000" >
        </el-pagination>
      </div>
      <div class="phome">
        <van-pagination
            @change="pageChange"
            v-model="pageSizes"
            :page-count="12"
            mode="simple" />
      </div>



    </div>
  </div>

</template>

<script>
export default {
  name: "index",
  data(){
    return{
      pageSizes:5
    }
  },
  methods:{
    pageChange(e){
      console.log(e)
      this.pageSizes = e
    },
  }
}
</script>

<style lang="scss" scoped>
  .title{width: 100%; color: #FFF;
    height: 40px; line-height: 40px; padding: 0px 15px; box-sizing: border-box;
    margin: 10px 0; border-bottom: 1px solid #aaa;
    background-color: #0086cf;

    .total{color: #333;float:right;line-height:40px;font-size:14px;text-align:right;margin-right: 10px;}
    .total em{padding:0 5px;color:#ffbf00;font-weight:bold; font-style: normal; font-size: 16px;}

  }
  //自定义栅格 大-lg 中-md 小-sm
  .row{ margin: 0px -5px; padding-bottom: 30px}
  .row > div{padding: 5px; box-sizing: border-box; float: left; }
  .row .video-box{width: 20%;}

  @media screen and (max-width:1280px){
    .row .video-box{width: 33.3%;}
  }
  @media screen and (max-width:760px){
    .pagination{display: none}
    .phome{display: block !important;}
    .row .video-box{width: 50%;}
  }

  .box{
    cursor: pointer;
    .imgs{width: 100%}
    .tit{
      text-align: center; line-height:30px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }
  .box:hover{background: #ccc}
  .phome{display: none}
  .pagination{text-align: center}
</style>
